package cn.jiedanba.cacert.model;

import java.io.Serializable;
import java.util.Date;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 证书模板
 * 
 * @author dell
 *
 */
@Data
@Table("tb_cert_template")
@Accessors(chain = true)
public class CertTemplate implements Serializable {

	private static final long serialVersionUID = 1L;

	@Id(keyType = KeyType.Generator, value = "snowflake")
	private String id;

	/**
	 * 根证书id
	 */
	private String rootId;

	/**
	 * 模板名称
	 */
	private String name;

	/**
	 * 密钥用法
	 */
	private String keyUsage;

	/**
	 * 密钥扩展用法
	 */
	private String extendUsage;

	/**
	 * 证书算法 RSA,，SM2, ECC
	 */
	private String algorithm;

	/**
	 * 创建时间
	 */

	private Date createDate;

	/**
	 * 更新时间
	 */

	private Date updateDate;

	/**
	 * 证书签名算法
	 */
	private String signatureAlgorithm;

	private String ocsp;

	private String crl;

	private String crt;
}
